<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/23 0023
 * Time: 下午 22:41
 */
namespace app\admin\model;

use think\Db;
use think\Model;

class Auth extends Model
{
    protected $pk = 'id';

    //自定义初始化
    protected function initialize()
    {
        parent::initialize();
    }

    /**
     * 获取所有权限
     */
    public function getAll(){
        $auth = $this->order('menu_level,weight','asc')->select();
        return $auth;
    }
}